/**
 * 
 */
package com.tomato.joke.persistence.model.base;

import java.util.Date;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;

/**
 * model基类
 * @author defier
 *
 */
public class BaseEntity {
	
	@DatabaseField(generatedId=true, unique=true, dataType = DataType.INTEGER)
	private int id;
	
	@DatabaseField(columnName="created_at", dataType = DataType.DATE)
	private Date createdAt;
	
	@DatabaseField(columnName="updated_at", dataType = DataType.DATE)
	private Date updatedAt;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

}
